package services.common;

import java.util.List;

import models.common.entity.t_amount_detail;
import services.base.BaseService;

import common.utils.Factory;

import daos.common.AmountDetailDao;

/**
 * 融通额度明细表Service
 *@author xiaojun
 *@version 2017-5-15 下午4:41:54
 */
public class AmountDetailService  extends BaseService<t_amount_detail>{
	
	private AmountDetailDao amountDetailDao;
	
	protected AmountDetailService() {
		amountDetailDao  = Factory.getDao(AmountDetailDao.class);
		super.basedao = amountDetailDao;
	}
	/**
	 * 更新融通额度明细表数据
	 * @param t 实体
	 * @return
	 */
	public boolean saveAmountDetail(t_amount_detail t){
		return amountDetailDao.save(t);
	}
	
	public List<t_amount_detail> queryAmountDetail(long id){
		return amountDetailDao.queryAmountDetail(id);
	}
	
}
